package com.chunuo.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chunuo.common.utils.PageUtils;
import com.chunuo.gulimall.product.entity.AttrEntity;
import com.chunuo.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author liujiamiao
 * @email 2544296058@gmail.com
 * @date 2020-06-25 18:42:45
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrVo getAttrInfo(Long attrId);

    void updateDetail(AttrVo attr);

    void saveDetail(AttrVo attr);

    List<AttrEntity> getRelation(Long attrgroupId);

    PageUtils getNotRelation(Map<String, Object> params, Long attrgroupId);
}

